{extend name="public:base" /}
{block name="head"}
<link href="__PUBLIC__/view_res/mobile/css/wshop_company_center.css" type="text/css" rel="Stylesheet" />
<style>
     a{color:#000;}
</style>
{/block} 

{block name="header"}
{include file="public/top-nav" /}
{/block}

{block name="content"}       
<div class="comspreadstat clearfix">
	<span class="spread-item">等级<b><?php echo get_agent_level_info($agent['agent_level'],'name'); ?></b></span>
	<span class="spread-item">返点<b><?php echo num_to_percent($agent['return_percent']); ?></b></span>
    <span class="spread-item"><a href="{:url('Cash/index')}">已提现<b>&yen; <?php echo round($agent['cash'],3); ?></b></a></span>
    <span class="spread-item"><a href="{:url('Cash/no_cash')}">未提现<b>&yen; <?php echo round($agent['no_cash'],3); ?></b></a></span>
</div>
<div class="comspreadstat clearfix">
    <span class="spread-item"> <a href="{:url('Agent/order',array('type'=>'today'))}">今日<b>&yen; <?php echo empty($today[0]['total'])?0:$today[0]['total']; ?></b> </a></span>
    <span class="spread-item"> <a href="{:url('Agent/order',array('type'=>'yesterday'))}">昨日<b>&yen; <?php echo empty($yesterday[0]['total'])?0:$yesterday[0]['total']; ?> </b> </a></span>
    <span class="spread-item"> <a href="{:url('Agent/order',array('type'=>'total'))}">总计<b>&yen; <?php echo round($agent['total_bonus'],3); ?> </b> </a></span>
    <span class="spread-item"> <a href="{:url('Agent/member')}">名下<b><?php echo $member; ?> 人</b> </a></span>
</div>

<header class="Thead">名下会员订单</header>

<div id="ulist">
    
    {volist name="list" id="order" empty="$empty"}    
        <section class="ulist clearfix">
            <img src="{$order.userpic}/64" />
            <div class="info">
                <p>{$order.nickname}</p>
                <p>订单：<a href='{:url("Order/order_info",array("order_id"=>$order["order_id"]))}'><b>{$order.order_num_alias}</b></a> 收益：<b>&yen;{$order.bonus}</b></p>
            </div>
        </section>
    {/volist}
</div>
{/block}